package utils;

/**
 * Responsible for check possibles inputs undesired.
 * 
 * @author Cassio Soares Cabral
 * 
 */
public class TestInput {

	static String VOID_STRING = "";

	/**
	 * True in case of object(parameter) be null.
	 * 
	 * @param obj
	 * @return boolean
	 */
	public static boolean nullTest(Object obj) {
		if (obj == null) {
			return true;
		}
		return false;

	}

	/**
	 * True in case of parameter be empty.
	 * 
	 * @param str
	 * @return boolean
	 */
	public static boolean emptyStringTest(String str) {
		if (str.equals(VOID_STRING)) {
			return true;
		}

		return false;
	}

}
